package day3.outer3;

public class Outer3 {
    private int num = 10;
    public void innerFun(){
        int num  = 20;
        class InnerClass{
            private  int innerNum = 30;
            public void test(){
                //num=30;
            }
        }


        //创建局部类对象
        InnerClass innerClass = new InnerClass();
        innerClass.test();
    }
}
